package cn.com.bluemoon.daps.model.entity;

import cn.com.bluemoon.daps.common.domain.BaseModel;
import cn.com.bluemoon.daps.common.domain.UserPermissionApi;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 图表json数据表
 * </p>
 *
 * @author admin
 * @since 2020-08-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors
@ApiModel(value = "DapDataModelJson", description = "图表json数据表")
public class DapDataModelJson extends BaseModel<DapDataModelJson> implements UserPermissionApi {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "图表json数据")
    private String jsonData;

    @ApiModelProperty(value = "模型分组id")
    private String modelGroupId;

    @ApiModelProperty(value = "模型id")
    @TableField(exist = false)
    private String modelId;

    @Override
    public Serializable getUserPermissionKeyValue() {
        return modelId;
    }
}
